package com.xiamo.controller;

import com.xiamo.security.SecurityService;
import com.xiamo.utils.WxCheckUtil;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.error.WxErrorException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/wxCheck")
public class WxCheckController {
    @Autowired
    private SecurityService securityService;
    /**
     * 获取token
     *
     * @param userInput
     * @return
     */
    @ResponseBody
    @RequestMapping("/getToken")
    public String getToken() {
        securityService.accessToken();

        return "1";

    }
}
